package com.jieli.bt.att.data.constant

import com.jieli.bt.att.util.UuidUtil
import java.util.UUID

/**
 * Config
 * @author zqjasonZhong
 * @since 2025/3/28
 * @email zhongzhuocheng@zh-jieli.com
 * @desc 配置
 */
object Config {
    /**
     * 是否跳过没有名字的设备
     */
    const val IS_FILTER_NO_NAME_DEVICE = false

    /**
     * 调整BLE的MTU
     * <p>
     *     注意: Gatt over BR/EDR 不支持调整MTU
     * </p>
     */
    const val REQUEST_BLE_MTU = 509

    /**
     * BLE服务UUID
     * <p>
     *     BLE: 服务UUID 是 0xae00 <br/>
     *     Gatt over BR/EDR: 服务UUID 是 0x1801
     * </p>
     */
    val BLE_SERVICE_UUID: UUID = UuidUtil.to16BitUUID("1801")//UuidUtil.to16BitUUID("ae00")

    /**
     * BLE写特征UUID
     */
    val BLE_WRITE_UUID: UUID = UuidUtil.to16BitUUID("ae01")

    /**
     * BLE通知特征UUID
     */
    val BLE_NOTIFY_UUID: UUID = UuidUtil.to16BitUUID("ae02")
}